import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { UserComponent } from './user.component';
import { UserListComponent } from './user-list.component';
import { UserEditComponent } from './user-edit.component';

const userRoutes = [
  {
    path: '',
    component: UserComponent,
    children: [
      {
        path: '',
        children:[
          {
            path: 'test',
            component: UserEditComponent
          },
          {
            path: '',
            component: UserListComponent
          }
        ]
      }
    ]
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(userRoutes)
  ],
  exports: [
    RouterModule
  ]
})
export class UserRoutingModule {

}
